package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.domain.ExtFieldRecord;
import com.hgkj.cloud.base.dao.ExtFieldRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ExtFieldRecordService {

    @Autowired
    private ExtFieldRecordMapper extFieldRecordMapper;

    public int deleteByPrimaryKey(Long id) {
        return extFieldRecordMapper.deleteByPrimaryKey(id);
    }

    public int insert(ExtFieldRecord record) {
        return extFieldRecordMapper.insert(record);
    }

    public int insertSelective(ExtFieldRecord record) {
        return extFieldRecordMapper.insertSelective(record);
    }

    public ExtFieldRecord selectByPrimaryKey(Long id) {
        return extFieldRecordMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(ExtFieldRecord record) {
        return extFieldRecordMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(ExtFieldRecord record) {
        return extFieldRecordMapper.updateByPrimaryKey(record);
    }

    public ExtFieldRecord selectDataByMap(Map<String, Object> map) {
        return extFieldRecordMapper.selectDataByMap(map);
    }

    public List<ExtFieldRecord> listExtFieldDataByChannelId(String channelId) {
        return extFieldRecordMapper.listExtFieldDataByChannelId(channelId);
    }

    public Map<String,Object> getOneDataByChannelId(String channelId) {
        return extFieldRecordMapper.getOneDataByChannelId(channelId);
    }
}
